package com.xyz.service;


import com.xyz.dto.UpkeepMaintenanceInsDto;
import com.xyz.dto.UpkeepWorkOrderDto;
import com.xyz.util.dto.DataResult;
import com.xyz.util.dto.LoginInfo;

public interface UpkeepService {

    //新增保养
    DataResult insertUpkeep(LoginInfo loginInfo, UpkeepWorkOrderDto dto) throws Exception;

    //编辑保养
    DataResult updateUpkeep(LoginInfo loginInfo, UpkeepWorkOrderDto dto) throws Exception;

    //领取工单
    DataResult receiveUpkeep(LoginInfo loginInfo, String upkeepId, String receiveType, String employeeId) throws Exception;

    //拒单
    DataResult refuseUpkeep(LoginInfo loginInfo, String id) throws Exception;

    //手动点击维保中
    DataResult undeUpkeep(LoginInfo loginInfo, String id) throws Exception;

    //暂停和开始维保
    DataResult suspendUpkeep(LoginInfo loginInfo, String id, String type) throws Exception;

    //工单转交
    DataResult transferUpkeep(LoginInfo loginInfo, String id) throws Exception;

    //维保保存
    DataResult insertSuspendUpkeep(LoginInfo loginInfo, UpkeepMaintenanceInsDto upkeepMaintenanceInsDto) throws Exception;

    //点击维保完成
    DataResult completeUpkeep(LoginInfo loginInfo, UpkeepMaintenanceInsDto upkeepMaintenanceInsDto) throws Exception;

    //验收指派人员
    DataResult accepAssignUpkeep(LoginInfo loginInfo, String id, String employeeId) throws Exception;

    //验收
    DataResult acceptUpkeep(LoginInfo loginInfo, String id, String type, String acceptExplain, String acceptScore) throws Exception;

    DataResult updateTask(LoginInfo loginInfo, long id) throws Exception;
}
